import { pageHeaderProps } from "element-plus"
import request from "../utils/request"

export const getAllClazzApi=()=>request.get('/clazzs/list')
export const getAllStudentApi=(name,degree,clazzId,page,pageSize)=>request.get(`/students?name=${name}&gender=${degree}&clazzId=${clazzId}&page=${page}&pageSize=${pageSize}`)
export const addStudentApi=(student)=>request.post('students',student)
export const getStudentById=(id)=>request.get(`/students/${id}`)
export const updateStudent=(student)=>request.put('students',student)
export const deleteStudentByIdApi=(ids)=>request.delete(`/students/${ids}`)
export const violationApi=(id,score)=>request.put(`/students/violation/${id}/${score}`)